package cate.game.role.friend.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBFriend;
import cate.game.role.Role;
import cate.game.role.friend.RoleFriend;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "好友数据初始化 の 返回")
public class FriendInitResp implements MsgOutput {

    @NoteField(value = "我的好友数据", detail = "包含好友列表，申请列表以及好友援助等信息")
    public RoleFriend data;

    public FriendInitResp(Role role) {
        role.getFriend().update();
        this.data = role.getFriend();
    }

    public FriendInitResp() {}

    @Override
    public MsgConfig conf() {
        return MsgIdBFriend.INIT_RESP;
    }
}
